package com.dd.service;

import com.dd.entity.Employees;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author dhd
 * @since 2024-10-21
 */
public interface IEmployeesService {
    //新增
    int save(Employees employees);

    //修改
    int update(Employees employees);

    //删除
    int delete(@Param("employeeId") Integer employeeId);

    //获取用户信息通过登录名和密码
    Employees searchAllByLoginNameAndPassword(String loginName, String password);

    //分页查询
    PageInfo<Employees> getPage(String empName, String phoneNumber, Integer pageNum);

    Employees queryById(Integer id);
}
